//package org.example.controller;
//
//import com.netflix.discovery.converters.Auto;
//import org.apache.commons.lang.StringUtils;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.ui.ModelMap;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RequestParam;
//
//@Controller
//public class UserController {
//    private static final Logger log = LoggerFactory.getLogger(UserController.class);
//
//    @Autowired
//    private Environment env;
//
//    @RequestMapping(value = {"/to/login", "unauth"})
//    public String toLogin() {
//        return "login";
//    }
//
//    @RequestMapping(value = "/login", method = RequestMethod.POST)
//    public String login(@RequestParam String userName, @RequestParam String password, ModelMap modelMap) {
//        if (StringUtils.isBlank(errorMsg)) {
//
//        }
//    }
//
//    @RequestMapping(value = {"/logout", "/unauth"})
//    public String logout() {
//        return "login";
//    }
//}
